import com.dmotiko.bolacua.*
import com.dmotiko.general.*

class RoomsLoader
extends DataXMLLoader {

	private function parserFunction(){
		var rooms:Array = xml.firstChild.childNodes;
			var roomsData:Array = new Array();
			var oRoom:Object;
			for (var i:Number = 0; i < rooms.length; i++) {
				oRoom = new Object();
				oRoom.link = rooms[i].attributes.link;
				oRoom.title = rooms[i].attributes.title;
				oRoom.content = rooms[i].firstChild.firstChild;
				roomsData.push(oRoom);
			}
		this.data = roomsData;
		loadEnd();
	}
	
}